import { request } from "@/utils/http";
import { DictItem } from "./types";
import { ReqGetHospitalSetParams } from "../hospitalSet/types";

// 获取请求医院列表设置
export function reqGetHospitalList({
  page,
  limit,
  ...args
}: ReqGetHospitalSetParams) {
  return request.get("/admin/hosp/hospital");
}
// 获取省份的信息
export function reqGetProvince() {
  return request.get<any, DictItem[]>(
    "/admin/cmn/dict/findByDictCode/province"
  );
}
// 获取市的信息
export function reqGetCitiesOrDistrict(parentId: number) {
  return request.get<any, DictItem[]>(
    `/admin/cmn/dict/findByParentId/${parentId}`
  );
}
// 获取医院等级
export function reqGetHosTypes() {
  return request.get<any, DictItem[]>("/admin/cmn/dict/findByDictCode/hostype");
}
